<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>编辑新闻表单</title>
</head>
<body>
<h2>编辑新闻</h2>
<hr/>
<form action="save">
    <!--保存 id 的隐藏域-->
    <input type="hidden" name="id" value="{$news['ID']}"/>
    <label>标题:<input type="text" name="title" value="{$news['title']}"/> </label>
    <br/>
    <label>类别:<select name="newstype">
        {volist name="newstype" id="vo"}
        <option value="{$vo.ID}"
        {eq name="vo.ID" value="$news.newsType"}selected{/eq} >{$vo.name}</option>
        {/volist}
    </select> </label>
    <br/>
    <label>内容：<textarea name="content">{$news['content']}</textarea></label>
    <input type="submit" value="提交"/>
    <input type="reset" value="重填"/>
</form>
</body>
</html>